package com.intco.ait.quotation.api.starter.advice;

import lombok.Getter;

/**
 * @author Angus
 */
@Getter
public class LocalException extends RuntimeException {
    /**
     * 异常状态码信息
     */
    private final int status;

    public LocalException(int status) {
        this.status = status;
    }

    public LocalException(int status, String message) {
        super(message);
        this.status = status;
    }

    public LocalException(int status, String message, Throwable cause) {
        super(message, cause);
        this.status = status;
    }

    public LocalException(int status, Throwable cause) {
        super(cause);
        this.status = status;
    }
}